<?php
namespace TestHome\Controller;

use Common\Controller\OrgnizerCommonController;
use Think\Controller;


class OrgnizerController extends OrgnizerCommonController {

    public $oid;

    public function __construct()
    {

        $orgnizers = M('orgnizers');
        $oid = $orgnizers->where(['uid' => session('uid')])->field('oid')->select();
        $this->oid = $oid[0]['oid'];

        if (!$this->oid){
            echo "Invalid orgnizer id";
            exit;
        }

        parent::__construct($this->oid);

    }
    /**
     * Orgnizer主方法在OrgnizerCommonController
     */



}